<!DOCTYPE HTML>
<html>
<head>
    <include file="Common:header_include"/>
    <title>编辑版本</title>
</head>
<body>
<div class="pd-20">
    <form action="{:U('edit')}" method="post" class="form form-horizontal" id="form">
        <input name="id" type="hidden" value="{$data.id}">
        <div class="row cl">
            <label class="form-label col-4"><span class="c-red">*</span>用户类型：</label>
            <div class="formControls col-7">
                <span class="select-box">
                <select class="select" size="1" name="usertype" datatype="*" nullmsg="请选择">
                    <option value="" selected="" disabled="disabled">请选择</option>
                    <option value="1" <if condition="$data['usertype']"> selected</if>>医生端</option>
                    <option value="0" <if condition="!$data['usertype']"> selected</if>>患者端</option>
                </select>
                </span>
            </div>
        </div>
        <div class="row cl">
            <label class="form-label col-4"><span class="c-red">*</span>版本号：</label>
            <div class="formControls col-7">
                <input type="text" class="input-text" placeholder="请输入" name="code" datatype="*" nullmsg="不能为空" value="{$data.code}">
            </div>
        </div>
        <div class="row cl">
            <label class="form-label col-4"><span class="c-red"></span>版本：</label>
            <div class="formControls col-7">
                <input type="text" class="input-text" placeholder="请输入" name="version" value="{$data.version}">
            </div>
        </div>
        <div class="row cl">
            <label class="form-label col-4"><span class="c-red"></span>APP包名称：</label>
            <div class="formControls col-7">
                <input type="text" class="input-text" placeholder="请输入" name="Packages" value="{$data.packages}">
            </div>
        </div>
        <div class="row cl">
            <label class="form-label col-4"><span class="c-red"></span>安装包：</label>
            <div class="formControls col-5">
                <input type="file" class="input-text" placeholder="请输入" name="downloadurl">
            </div>
            <div class="col-2">
                <if condition="$data['downloadurl']">
                    已上传
                    <else/>
                   <span style="color: red">未上传</span>
                </if>
            </div>
        </div>
        <div class="row cl">
            <label class="form-label col-4"><span class="c-red"></span>下载链接：</label>
            <div class="formControls col-7">
                <input type="text" class="input-text" placeholder="请输入"  value="{$data.downloadurl}">
            </div>
        </div>
        <div class="row cl">
            <div class="col-7 col-offset-4">
                <input class="btn btn-primary radius" type="submit" value="提交">
            </div>
        </div>
    </form>
</div>
<include file="Common:footer_include"/>
</body>
</html>